using System.Configuration;
using System.Xml;

namespace Rejs
{
    public class DConfig : IConfigurationSectionHandler
    {
        #region IConfigurationSectionHandler Members

        public dynamic Create(object parent, object configContext, XmlNode section)
        {
            var configSection = new XmlDocument();
            configSection.LoadXml(section.OuterXml);
            return configSection.ToObject();
        }

        #endregion
    }
}